<?php
namespace app\admin\controller;

use \think\Controller as Controller;
class  System extends Base {

    
    public function index(){
        var_dump('1');
    }

    public function example() {
        $arr1 = ['a'=>1,'b'=>2,3,4=>['dog','pig'] ];
        $arr2 = ['red','black'];
        $arr3 = ['a'=>6,'b'=>7];
        $arr4 = array_merge($arr1,$arr2);
        $arr5 = array_merge($arr4,$arr3);

        var_dump($arr5);
    }


    public function ex(){
        $array1 = array(0 => 'zero_a', 2 => 'two_a', 3 => 'three_a');
        $array2 = array(1 => 'one_b', 3 => 'three_b', 4 => 'four_b');
        $result = $array1 + $array2;
        var_dump($result);        
    }

    public function exarr(){
        $beginning = 'foo';
        $end = array(1 => 'bar');

        $result = array_merge((array)$beginning, (array)$end);
        print_r($result);
    }

    
}
